package com.yycx.module.bus.provider.controller;

import com.yycx.common.mybatis.model.ResultBody;
import com.yycx.common.springmvc.base.BaseController;
import com.yycx.module.bus.client.entity.BusConsumption;
import com.yycx.module.bus.client.entity.BusFinance;
import com.yycx.module.bus.provider.service.BusConsumptionService;
import com.yycx.module.bus.provider.service.BusFinanceService;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;


/**
 * 日常开销费用控制器
 *
 * @author flyme
 * @date 2020-11-28
 */
@Controller
@RequestMapping("/bus/common/finance/")
public class BusCommonController extends BaseController<BusFinanceService, BusFinance> {

    @ApiOperation(value = "部门对账表-导出数据", notes = "部门对账表-导出数据")
    @GetMapping(value = "exportData2")
    public ResultBody exportData(HttpServletRequest request, HttpServletResponse response, @RequestParam Long financeId) {
        bizService.exportData(response, financeId);
        return ResultBody.ok();
    }

}
